#include "SGNodeDirectionalLight.h"

SGNodeDirectionalLight::SGNodeDirectionalLight(CDirectionalLight* light)
:m_direction(0, CVector3f()), m_light(light)
{}

SGNodeDirectionalLight::~SGNodeDirectionalLight(){}

void SGNodeDirectionalLight::doUpdate()
{
	m_light->setDirection(m_direction);
}

void SGNodeDirectionalLight::dirty()
{
	m_direction.onChange();
}